home *** CD-ROM | disk | FTP | other *** search
/ Learn Microsoft Visual Basic 6.0 Now / Learn Microsoft Visual Basic 6.0 Now (Microsoft Press)(X03-58607)(1998).ISO / media / chap06 / b06d015.cc2 < prev   
Text File  |  1998-06-07  |  1KB  |  25 lines

  1. 0, Your assignment in Lab 6 is to create a 
  2. 3, program that uses a timer object to 
  3. 6, regulate the time allowed for entering a 
  4. 8, password. Your program solution should 
  5. 11, include a descriptive label object, a text 
  6. 14, box object, a timer object, and a Try 
  7. 18, Password button. When the program runs, a 
  8. 24, dialog box should appear that gives the 
  9. 25, user 15 seconds to enter the correct 
  10. 27, password. In this example, the correct 
  11. 29, password is Secret. If they answer 
  12. 32, incorrectly, a message should appear notifying 
  13. 35, them so. But if they answer correctly, 
  14. 42, Visual Basic should display a message that 
  15. 44, welcomes them to the system. Now, I'll 
  16. 47, try running the program again to 
  17. 49, demonstrate the Time Out function. If the user 
  18. 53, fails to enter the correct password in 15 
  19. 55, seconds, the message, "Sorry, your time 
  20. 58, is up," is displayed by the 
  21. 59, Timer1_Timer event procedure. As you can see, this 
  22. 64, password protection exercise clearly 
  23. 67, demonstrates the egg timer functionality of 
  24. 70, the Visual Basic Timer control.
  25. 72, END